-- GENERATED SPELL FOR [Embalming Slime] --


function spell0_16024(pUnit, Event) --@Embalming Cloud,n/a--
pUnit:FullCastSpellOnTarget(28322,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16024', 629, 1)
end

function Sorts_16024(pUnit, Event)
local choix_sorts_16024 = math.random(0, 0)
if choix_sorts_16024 == 0 then
pUnit:RegisterEvent('spell0_16024', 1, 1)
end
end

function mob16024_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16024', math.random(1500, 3000), 1)
end

function mob16024_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16024_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16024_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16024, 1, 'mob16024_Action')
RegisterUnitEvent(16024, 2, 'mob16024_Leave')
RegisterUnitEvent(16024, 3, 'mob16024_Kill')
RegisterUnitEvent(16024, 4, 'mob16024_Die')
